/**
 * output package name
 */
package com.kingdee.eas.basedata.person;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class Genders extends IntEnum
{
    public static final int MALE_VALUE = 1;
    public static final int FEMALE_VALUE = 2;

    public static final Genders Male = new Genders("Male", MALE_VALUE);
    public static final Genders Female = new Genders("Female", FEMALE_VALUE);

    /**
     * construct function
     * @param integer genders
     */
    private Genders(String name, int genders)
    {
        super(name, genders);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static Genders getEnum(String genders)
    {
        return (Genders)getEnum(Genders.class, genders);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static Genders getEnum(int genders)
    {
        return (Genders)getEnum(Genders.class, genders);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(Genders.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(Genders.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(Genders.class);
    }
}